//
//  XOShoppingCartModel.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2018/3/16.
//  Copyright © 2018年 lifayu. All rights reserved.
//

#import "XOShoppingCartModel.h"

@implementation XOShoppingCartModel

- (NSString *)getArrayObjectClassNameForArrayName:(NSString *)arrayName{
    return @"EJSShoppingCartGoodsModel";
}

- (BOOL)wholeSelected{
    for (EJSShoppingCartGoodsModel *model in self.carts) {
        if(!model.selectState){
            return NO;
        }
    }
    return YES;
}

- (void)setWholeSelected:(BOOL)wholeSelected{
    for (EJSShoppingCartGoodsModel *model in self.carts) {
        model.selectState = wholeSelected;
    }
}

@end
